package com.authine.cloudpivot.ext.mapper;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.authine.cloudpivot.ext.domain.OrgRoleUser;
import com.authine.cloudpivot.util.MyMapper;

public interface OrgRoleUserMapper extends MyMapper<OrgRoleUser> {
    Integer insertByRoleUserList(List<OrgRoleUser> subList);

    Integer deleteByDeptId(@Param("deptId") String deptId);

    Integer deleteByDeptIdSet(Set<String> idSet);

    Integer insertByRoleUser(OrgRoleUser orgRoleUser);

    Integer deleteByUserId(@Param("userId") String userId);
}